package com.k.ssh.cloud.k8s.discovery.controller;

import com.k.ssh.cloud.k8s.discovery.feign.ServerFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class HelloControl {
    @Autowired
    private ServerFeign serverFeign;

    @GetMapping("/index")
    public Map<String, String> index() {
        Map<String, String> map = serverFeign.index();
        return map;
    }
}
